package com.learn.mapper;

import com.learn.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/02/22
 * @description
 */
public interface UserMapper {
    List<User> selectIf(@Param("name") String name, @Param("password") String password);
    List<User> selectWhere(@Param("name") String name, @Param("password") String password);
    List<User> selectTrim(@Param("name") String name, @Param("password") String password);
    List<User> selectChose(@Param("id") Integer id, @Param("name") String name, @Param("password") String password);
    int updateSet(User user);
    int deleteBatchById(@Param("ids") Integer[] ids);
    int insertBatch(@Param("users") List<User> users);
}
